const viewRoute = [
{{#each app.pages as | page |}}
    {{!-- 目前仅发布已支持视图 --}}
    {{#or
        (eq page.type 'DEMOBEDITVIEW')
        (eq page.type 'DEMOBMDVIEW')
        (eq page.type 'DEMOBEDITVIEW3')
        (eq page.type 'DEMOBWIZARDVIEW')
        (eq page.type 'DEMOBOPTVIEW')
        (eq page.type 'APPPORTALVIEW')
        (eq page.type 'DEMOBTABEXPVIEW')
        (eq page.type 'DEMOBPORTALVIEW')
        (eq page.type 'DEMOBHTMLVIEW')
        (eq page.type 'DEMOBCUSTOMVIEW')
        (eq page.type 'DEMOBCHARTVIEW')
        (eq page.type 'DEMOBCALENDARVIEW')
        (eq page.type 'DEMOBPICKUPVIEW')
        (eq page.type 'DEMOBPICKUPLISTVIEW')
        (eq page.type 'DEMOBMPICKUPVIEW')
        (eq page.type 'DEMOBLISTEXPVIEW')
        (eq page.type 'DEMOBMEDITVIEW9')
        (eq page.type 'DEMOBTREEVIEW')
    }}        
        {{#if page.appEntity}}
            {{#if page.appEntity.appDERSPaths}}
                {{#each page.appEntity.appDERSPaths as | singleResPaths |}}
    {
        path: '{{#each singleResPaths as | resPath |}}{{#neq @index 0}}/{{/neq}}{{lowerCase (pluralize resPath)}}/:{{lowerCase resPath}}?{{/each}}/{{lowerCase (pluralize page.appEntity.codeName)}}/:{{lowerCase page.appEntity.codeName}}?/views/{{lowerCase page.codeName}}',
        meta: {
            caption: '{{page.caption}}',
            tag: '{{page.codeName}}',
            requireAuth: false,
            ignoreAddPage: false,
            startPage: false,
            parameters: [
                { pathName: 'index', parameterName: 'index' },
                    {{#each singleResPaths as | resPath |}}
                { pathName: '{{lowerCase (pluralize resPath)}}', parameterName: '{{lowerCase resPath}}' },
                    {{/each}}
                { pathName: '{{lowerCase (pluralize page.appEntity.codeName)}}', parameterName: '{{lowerCase page.appEntity.codeName}}' },
                { pathName: 'views', parameterName: 'view' }
            ]
        },
        component: () => import("@views/{{#if page.psAppModule.codeName}}{{spinalCase page.psAppModule.codeName}}/{{/if}}{{spinalCase page.codeName}}/{{spinalCase page.codeName}}.vue")
    },
                {{/each}}
            {{else}}
    {
        path: '{{lowerCase (pluralize page.appEntity.codeName)}}/:{{lowerCase page.appEntity.codeName}}?/views/{{lowerCase page.codeName}}',
        meta: {
            caption: '{{page.caption}}',
            tag: '{{page.codeName}}',
            requireAuth: false,
            ignoreAddPage: false,
            startPage: false,
            parameters: [
                { pathName: 'index', parameterName: 'index' },
                { pathName: '{{lowerCase (pluralize page.appEntity.codeName)}}', parameterName: '{{lowerCase page.appEntity.codeName}}' },
                { pathName: 'views', parameterName: 'view' }
            ]
        },
        {{!-- 部分模型欠缺应用模块，临时去掉 --}}
        component: () => import("@views/{{#if page.psAppModule.codeName}}{{spinalCase page.psAppModule.codeName}}/{{/if}}{{spinalCase page.codeName}}/{{spinalCase page.codeName}}.vue")
    },
            {{/if}}
        {{else}}
            {
                path: 'views/{{lowerCase page.codeName}}',
                meta: {
                    caption: '{{page.caption}}',
                    tag: '{{page.codeName}}',
                    requireAuth: false,
                    ignoreAddPage: false,
                    startPage: false,
                    parameters: [
                        { pathName: 'views', parameterName: 'index' },
                    ],
                },
                component: () => import("@views/{{#if page.psAppModule.codeName}}{{spinalCase page.psAppModule.codeName}}/{{/if}}{{spinalCase page.codeName}}/{{spinalCase page.codeName}}.vue"),
            },
        {{/if}}
    {{/or}}
{{/each}}
]
export const ViewRoute = viewRoute;